package com.edu.service;

import com.edu.dao.MissionMapper;
import com.edu.pojo.Mission;
import com.edu.pojo.users;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public class MissionServiceImpl implements  MissionService{
    private MissionMapper missionMapper;
    public void setMissionMapper(com.edu.dao.MissionMapper missionMapper) {
        this.missionMapper = missionMapper;
    }
    public int addMission(Mission mission) {
        return missionMapper.addMission(mission);
    }

    public List<Mission> showAllMission(String publishman) {
        return  missionMapper.showAllMission(publishman);
    }
    public List<Mission> showMyMission(String memberNo) {
        return  missionMapper.showMyMission(memberNo);
    }


    public List<Mission> showNeedMission(Integer status, String publishman){return missionMapper.showNeedMission(status,publishman);};

    public int updateMission(Mission mission) {
        return  missionMapper.updateMission(mission);
    }

    public int finishMission(String finishPath,Integer id) {
        return  missionMapper.finishMission(finishPath,id);
    }

    public int agreeThesisTitle(int id) {
        return missionMapper.agreeThesisTitle(id);
    }

    public int disagreeThesisTitle(int id) {
        return missionMapper.disagreeThesisTitle(id);
    }

    public int deleteMission(int id){
        return missionMapper.deleteMission(id);
    }

    public int approved(int id) {
        return missionMapper.approved(id);
    }

    public int notApproved(int id) {
        return missionMapper.notApproved(id);
    }

    public Mission querymissionById(Integer id) {
        return missionMapper.querymissionById(id);
    }

}
